import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
export default async function a004(fd: IFeidaoAiBrowserComponent) {
	// todo 回返数据
	const s = fd.data.node.querySelectorAll<HTMLInputElement>('[checked="checked"]');
	const a = [];
	if (s.length > 0) {
		for (let i = 0; i < s.length; i++) {

			const d = s[i].getAttribute('data-zzs');
			if (d) {
				const data = JSON.parse(d);
				a.push(data);
			}
		}
	} else {
		alert("请选择最少一条自定义属性!");
		return;
	}
	fire("zj-000001", 'a013', a);
	fire("zj-000003", 'a002');
}
